package com.user.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Primary;
import org.springframework.core.io.Resource;
import org.springframework.stereotype.Component;
import java.time.Duration;

/**
 * JWT配置类
 * @author : LiuLi
 * @since : 2025-09-04 10:05
 **/
@Data
@Component
@ConfigurationProperties(prefix = "hm.jwt")
@Primary
public class JwtProperties {
    private Resource location;
    private String password;
    private String alias;
    private Duration tokenTtl = Duration.ofMinutes(10);
}
